const wrapper = require('../utils/responseWrapper');

const data = {};
const arr = ['selectPsn', 'selectDept', 'project', 'task', 'file', 'workflow'];
arr.map((type) => {
  data[type] = {
    columns: [
      { fieldName: 'name', fieldLabel: '名称' },
      { fieldName: 'field1', fieldLabel: '列1' },
      { fieldName: 'field2', fieldLabel: '列2' },
    ],
    sortColumns: [
      { fieldName: 'name', fieldLabel: '名称' },
      { fieldName: 'field1', fieldLabel: '列1' },
    ],
  };
  return type;
});

module.exports = wrapper(data);
